-module(usharp_erlang_app).

-behaviour(application).


-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").
-endif.

%% Application callbacks
-export([start/2, stop/1]).

%% ===================================================================
%% Application callbacks
%% ===================================================================

start(_StartType, _StartArgs) ->
    usharp_erlang_sup:start_link().

stop(_State) ->
    ok.

-ifdef(TEST).
inline_test() ->
    ok = application:start(usharp_erlang),
    ?assertNot(undefined == whereis(usharp_erlang_sup)),
	ok = application:stop(usharp_erlang),
	?assert(undefined == whereis(usharp_erlang_sup)).
-endif.